home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / 1404_proper_method_to_close_windows.rtf < prev    next >
Text File  |  1993-11-08  |  954b  |  30 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f2\fmodern Ohlfs;}
  2. \paperw10980
  3. \paperh8500
  4. \margl120
  5. \margr120
  6. {\colortbl;\red0\green0\blue0;\red84\green84\blue84;\red83\green83\blue83;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q:   If I have a window delegate, which method should I use to close the window, the 
  8. \b close:
  9. \b0  method or the 
  10. \b performClose:
  11. \b0  method?\
  12.  
  13. \i     \
  14.  
  15. \i0 A:  The 
  16. \b performClose:
  17. \b0  method should be used instead of 
  18. \b close:
  19. \b0  because it sends a 
  20. \pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\b\fc1\cf1 windowWillClose:
  21. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\b0\fc0\cf0   to its delegate, while the 
  22. \b close:
  23. \b0  method doesn't.   See the documentation in the reference manual about the window class for more information about these two methods.\
  24. \
  25. QA644\
  26. \
  27. Valid for 1.0, 2.0, 3.0\
  28. \
  29.  
  30.